package com.hxhy;

import javax.annotation.Resource;

import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

import com.hxhy.service.InvoiceService;
@Component
@Order(1)
public class ApplicationInit implements CommandLineRunner {

	@Resource(name = "${version}")
	InvoiceService service;
	
	@Override
	public void run(String... args) throws Exception {
		service.init();
	}

}
